<?php

$hlogo=$_REQUEST["hlogo"];

$con =mysqli_connect("localhost","root","","cqhg");
mysqli_set_charset($con,"utf8");
if($hlogo=="1"){
	$food="select * from user limit 4";
   $foodda=  mysqli_query($con,$food);
   
   $fooddt =mysqli_fetch_all($foodda,MYSQLI_ASSOC);
   
   $dt =json_encode($fooddt);
   echo $dt;
}
if($hlogo=="2"){
	$food="select * from scgy limit 4";
   $foodda=  mysqli_query($con,$food);
   
   $fooddt =mysqli_fetch_all($foodda,MYSQLI_ASSOC);
   
   $dt =json_encode($fooddt);
   echo $dt;
}



?>